<?php
error_reporting(0);
include("post_temp.class.php");
checkLogin();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>图片上传</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script>
<script type="text/javascript" src="js/script.js"></script>
</head>
<body>
	
	<?php include("include/header.php");?>

	<div class="mini_map">		
		<div style="border:1px solid gray" id="container" class="map_mini"></div>	
		<div class="post">	
			
			<form action="upload.php" method="POST" enctype="multipart/form-data" target="hidden_frame">
				<div class="post_input">
					<p>选择图片：</p>
					<div class="view">
						<input type="file" name="up_image" class="post_in fl dib">
						<input type="hidden" name="city_lng" id="city_lng" value="<?php echo $_GET['lng']?>">
						<input type="hidden" name="city_lat" id="city_lat" value="<?php echo $_GET['lat']?>">
						<input type="hidden" name="address" id="address" value="<?php echo $_GET['address']?>">
						<!--<a href="" class="view_button dib">浏&nbsp&nbsp览</a>-->
					</div>
				</div>
			
				<div class="post_input">
					<p>图片名：</p>
					<input type="text" name="img_name" id="img_name" class="post_in" />
				</div>
				<div class="post_input">
					<p>选择类别：</p>
					<select>
						<option value ="1">美食</option>
						<option value ="2">美景</option>
						<option value ="3">时尚</option>
						<option value ="4">旅游</option>
					</select>
				</div>
				
				<div class="post_input">
					<p>上传至相册：</p>
					<div class="temp_gallery">
						<?php showUserGallery($_SESSION['login_mail']);?>
						<a href="#" id="new_gallery" class="545454 ml10" style="font-size:18px">新建相册</a>
					</div>
					<div class="new_gallery none">
						<input type="text" id="gallery_name" style="height:40px;width:270px;font-size:20px">
						<a href="#" id="create_gallery" class="ml10">新建</a>
						<a href="#" id="no_new" class="ml10">取消</a>
					</div>
				</div>
				<div class="post_de fl"><p>描述：</p><textarea name="remark" class="description  fl"></textarea></div>
				
				<div class="post_de fl">
					
					<div><p>输入地址（或在地图上单击右键）：</p><input type="text" id="suggestId"  value="" class="post_in" /></div>
					<input name="" type="checkbox" value="" />同步到微博
					<input type="submit" name="up_submit" value="保&nbsp&nbsp存" class="post_button dib" onclick="return check_add();">
				</div>
				<iframe name='hidden_frame' id="hidden_frame" style="border:none;display:none"></iframe>
			</form>

			<div id="notice"></div>
		</div>
		
	</div>
	<hr class="hr" >
	<div class="copyright w960 ma">关于我们&nbsp|&nbsp使用条款&nbsp|&nbsp常见问题<br/>CopyRight &copy; 2011-2012 <a href="http://www.csecl.com/">csecl.com复杂系统与电子商务创新实验室</a> </div>
	
	<!---上传成功提示--->
	<div style="margin:0;padding:10px;font-size:24px;display:none;position:absolute;left:400px;top:200px;z-index:9999;background-color:#ccc" id="upload_success">上传成功</div>
</body>
</html>

<script type="text/javascript" src="js/post_temp.js"></script>